import request from "@/utils/request.js";


// 获取分类列表
export function getCategoryApi(data) {
    return request({
        url: "/category/getCategory",
        method: "get",
        params: data
    });
}

// 添加分类列表
export function addCategoryApi(data) {
    return request({
        url: "/category/addCategory",
        method: "post",
        data
    });
}
// 删除商品接口
export function deleteCategoryApi(data) {
    return request({
        url: `/category/${data}`,
        method: "delete",
    });
}
// 修改商品接口
export function updateCategoryApi(data) {
    return request({
        url: "/category/updateCategory",
        method: "post",
        data
    });
}

// 查询商品接口
export function searchCategoryApi(data) {
    return request({
        url: "/category/searchCategory",
        method: "post",
        data
    });
}







